home *** CD-ROM | disk | FTP | other *** search
- Program recipes;
-
- {$I gemsubs.pas}
- {$I auxsubs.pas}
-
- TYPE efields = ARRAY[1..30] of integer;
- short_fields = ARRAY[1..14] of STRING[36];
- long_fields = ARRAY[1..9] of STRING[74];
- titles = ARRAY[1..5,1..20] of integer;
- title_data = ARRAY[1..5,1..20] of STRING[36];
- m_titles = ARRAY[1..5,1..20] of STRING[20];
- numstrgs = ARRAY[1..40] of STRING[2];
- printtype = (Pica,Cond);
-
- VAR
- wind_title : Window_Title;
-
- msg : Message_Buffer;
-
- a_menu : Menu_Ptr;
-
- Info_Box : Dialog_Ptr;
-
- data_box : Dialog_Ptr;
-
- disk,printer : text;
-
- fname,fname2,flder : STRING[80];
-
- efield : efields;
-
- teststrg : STRING[255];
-
- short_field : short_fields;
-
- long_field : long_fields;
-
- title : titles;
-
- title_dat : title_data;
-
- m_title : m_titles;
-
- numstrg : numstrgs;
-
- long_strg : STRING[74];
-
- pnttype : printtype;
-
- codes : file of integer;
-
- test,drive : short_integer;
-
- bnk,sect : STRING[12];
-
- folname : C_String;
-
- title0,title1,title2,title3,title4,title5,item11,smf,
- sf,info_item,save_btn,ex_btn,pnt_btn,ok_button,box,
- dummy,event_val,windtype,big_window,event,item12,item13,
- hx,hy,hw,hh,xm,ym,wm,hm,cw,ch,bw,bh,c1,c2,pc1,pc2,item14,
- x,y,section,number,item15,item16,item17,item18,pc3,pc4,
- item19,item20,item21,item22,item23,bank,bx,item24,item25,
- next_btn,last_btn,bnk_inf,rec_inf,i,bttn : integer;
-
- Function GetDrive:short_integer;
- GEMDOS($19);
-
- Procedure SetDrive(drive:short_integer);
- GEMDOS($0E);
-
- Function MkDir(var folname:C_String):short_integer;
- GEMDOS($39);
-
- Procedure change_drive;
- Begin
- drive:=GetDrive;
- dummy:=Do_Alert('[0][ Change Drive ][ A | B | C ]',drive+1);
- drive:=dummy-1;
- SetDrive(drive);
- end;
-
- Procedure new_data;
- var incr : integer;
- begin
- for incr:=1 to 14 do
- short_field[incr]:='';
- for incr:=1 to 9 do
- long_field[incr]:='';
- end;
-
- Procedure read_pnt_codes;
- begin
- fname:='PRINTER.INF';
- Reset(codes,fname);
- test:=IO_Result;
- if test=0 then
- read(codes,pc1,pc2,pc3,pc4);
- if test=-33 then
- begin
- pc1:=0;pc2:=18;pc3:=27;pc4:=15;
- Close(codes);
- Rewrite(codes,fname);
- write(codes,pc1,pc2,pc3,pc4);
- Close(codes);
- end;
- c1:=pc1;
- c2:=pc2;
- end;
-
- Procedure bconout(dev, c:integer);
- BIOS(3);
-
- Procedure build_screen;
- begin
- end;
-
- Procedure build_menu;
- var incr:integer;
- begin
- Set_Mouse(M_Bee);
- a_menu := New_Menu(134,' Recipe Saver ');
- title0 := Add_MTitle(a_menu,' File ');
- title1 := Add_MTitle(a_menu,' Section 1 ');
- title2 := Add_MTitle(a_menu,' Section 2 ');
- title3 := Add_MTitle(a_menu,' Section 3 ');
- title4 := Add_MTitle(a_menu,' Section 4 ');
- title5 := Add_MTitle(a_menu,' Section 5 ');
- item11 := Add_Mitem(a_menu,title0,' Quit Program ');
- item12 := Add_Mitem(a_menu,title0,'-----------------');
- item13 := Add_Mitem(a_menu,title0,' Print on Paper ');
- item14 := Add_Mitem(a_menu,title0,' Print 3x5 Card ');
- item15 := Add_Mitem(a_menu,title0,'-----------------');
- item16 := Add_Mitem(a_menu,title0,' Print Section 1');
- item17 := Add_Mitem(a_menu,title0,' Print Section 2');
- item18 := Add_Mitem(a_menu,title0,' Print Section 3');
- item19 := Add_Mitem(a_menu,title0,' Print Section 4');
- item20 := Add_Mitem(a_menu,title0,' Print Section 5');
- item21 := Add_Mitem(a_menu,title0,'-----------------');
- item22 := Add_Mitem(a_menu,title0,' Data Bank A ');
- item23 := Add_Mitem(a_menu,title0,' Data Bank B ');
- item24 := Add_Mitem(a_menu,title0,'-----------------');
- item25 := Add_Mitem(a_menu,title0,' Change Drive ');
- for incr:=1 to 20 do
- title[1,incr]:=Add_Mitem(a_menu,title1,m_title[1,incr]);
- for incr:=1 to 20 do
- title[2,incr]:=Add_Mitem(a_menu,title2,m_title[2,incr]);
- for incr:=1 to 20 do
- title[3,incr]:=Add_Mitem(a_menu,title3,m_title[3,incr]);
- for incr:=1 to 20 do
- title[4,incr]:=Add_Mitem(a_menu,title4,m_title[4,incr]);
- for incr:=1 to 20 do
- title[5,incr]:=Add_Mitem(a_menu,title5,m_title[5,incr]);
- Draw_Menu(a_menu);
- Menu_Disable(a_menu,item12);
- Menu_Disable(a_menu,item15);
- Menu_Disable(a_menu,item21);
- if pnttype=Pica then
- begin
- Menu_Check(a_menu,item13,true);
- Menu_Check(a_menu,item14,false);
- end;
- if pnttype=Cond then
- begin
- Menu_Check(a_menu,item13,false);
- Menu_Check(a_menu,item14,true);
- end;
- if bank=0 then
- begin
- Menu_Check(a_menu,item22,true);
- Menu_Check(a_menu,item23,false);
- end;
- if bank=1 then
- begin
- Menu_Check(a_menu,item22,false);
- Menu_Check(a_menu,item23,true);
- end;
- Set_Mouse(M_Arrow);
- end;
-
-
- Procedure Do_Redraw(handle, x0, y0, w0, h0 : integer);
- VAR
- x, y, w, h :integer;
-
- begin
- Begin_Update;
- Hide_Mouse;
- First_Rect(handle, x, y, w, h);
- While (w <> 0) and (h <> 0) do
- begin
- If Rect_Intersect( x0, y0, w0, h0, x, y, w, h) then
- begin
- Set_Clip(x, y, w, h);
- Paint_Color(white);
- Paint_Rect(x, y, w, h);
- build_screen;
- end;
- Next_Rect(handle, x, y, w, h);
- end;
- Show_Mouse;
- Set_Clip(xm, ym, wm, hm);
- End_Update;
- end;
-
- Procedure make_folders;
- var incr:integer;
- Begin
- for incr:=1 to 5 do
- begin
- flder:='RECIPES ';
- flder[8]:=numstrg[incr,2];
- P_To_Cstr(flder,folname);
- i:=MkDir(folname);
- end;
- test:=-33;
- end;
-
- Procedure read_titles;
- var incr,step,count,ltd:integer;
- begin
- Set_Mouse(M_Bee);
- fname2:='\RECIPES \MENU .TXT';
- for incr:=1 to 5 do
- begin
- fname2[9]:=numstrg[incr,2];
- fname2[15]:=numstrg[bank+1,2];
- Reset(disk,fname2);
- test:=IO_Result;
- if test=-33 then
- make_folders;
- for step:=1 to 20 do
- begin
- if test=0 then
- readln(disk,title_dat[incr,step]);
- if test=-33 then
- title_dat[incr,step]:='';
- m_title[incr,step]:=' ';
- ltd:=length(title_dat[incr,step]);
- if ltd>0 then
- begin
- if ltd>20 then ltd:=20;
- for count:=1 to ltd do
- m_title[incr,step,count]:=title_dat[incr,step,count];
- end;
- end;
- Close(disk);
- end;
- Set_Mouse(M_Arrow);
- end;
-
- Procedure read_data;
- var step:integer;
- begin
- Set_Mouse(M_Bee);
- Reset(disk,fname);
- test:=IO_Result;
- if test=0 then
- begin
- for step:=1 to 14 do
- readln(disk,short_field[step]);
- for step:=1 to 9 do
- readln(disk,long_field[step]);
- end;
- if test=-33 then new_data;
- Set_Mouse(M_Arrow);
- end;
-
- Procedure save_data;
- var incr : integer;
- begin
- Set_Mouse(M_Bee);
- Rewrite(disk,fname);
- for incr:=1 to 14 do
- writeln(disk,short_field[incr]);
- for incr:=1 to 9 do
- writeln(disk,long_field[incr]);
- Close(disk);
- fname2:='\RECIPES \MENU .TXT';
- fname2[9]:=numstrg[section,2];
- fname2[15]:=numstrg[bank+1,2];
- Rewrite(disk,fname2);
- for incr:=1 to 20 do
- writeln(disk,title_dat[section,incr]);
- Close(disk);
- Set_Mouse(M_Arrow);
- end;
-
- Procedure print_data;
- var incr,step,ltd : integer;
- begin
- Set_Mouse(M_Bee);
- bconout(0,c1);
- bconout(0,c2);
- Rewrite(printer,'LST:');
- ltd:=length(title_dat[section,number]);
- writeln(printer,title_dat[section,number]:37+(ltd div 2));
- if pnttype<>Cond then writeln(printer);
- for incr:=1 to 7 do
- begin
- long_strg:=
- ' ';
- for step:=1 to length(short_field[incr]) do
- long_strg[step]:=short_field[incr,step];
- for step:=1 to length(short_field[incr+7]) do
- long_strg[step+38]:=short_field[incr+7,step];
- writeln(printer,long_strg);
- end;
- if pnttype<>Cond then writeln(printer);
- for incr:=1 to 9 do
- writeln(printer,long_field[incr]);
- if pnttype<>Cond then
- for incr:=1 to 2 do
- writeln(printer);
- writeln(printer);
- Set_Mouse(M_Arrow);
- end;
-
- Procedure print_section;
- var incr,step: integer;
- begin
- for incr:=1 to 20 do
- begin
- number:=incr;
- fname:='\RECIPES \RECIPE ';
- fname[9]:=numstrg[section,2];
- fname[17]:=numstrg[incr+(20*bank),1];
- fname[18]:=numstrg[incr+(20*bank),2];
- Reset(disk,fname);
- test:=IO_Result;
- if test=0 then
- begin
- for step:=1 to 14 do
- readln(disk,short_field[step]);
- for step:=1 to 9 do
- readln(disk,long_field[step]);
- end;
- if test=-33 then new_data;
- print_data;
- end;
- end;
-
- Procedure disp_box;
- var incr,step,ltd:integer;
- begin
- bnk:='Data Bank ';
- sect:='Sect No ';
- bnk[11]:=chr(bank+ord('A'));
- sect[6]:=numstrg[section,2];
- sect[11]:=numstrg[number,1];
- sect[12]:=numstrg[number,2];
- data_box:=New_Dialog(50,0,0,78,21);
- box:=Add_DItem(data_box,G_Box,None,0,0,78,21,1,4211);
- bnk_inf:=Add_DItem(data_box,G_Text,None,5,1,11,1,0,256);
- Set_DText(data_box,bnk_inf,bnk,sf,TE_Left);
- rec_inf:=Add_DItem(data_box,G_Text,None,60,1,12,1,0,256);
- Set_DText(data_box,rec_inf,sect,sf,TE_Left);
- efield[24]:=Add_DItem(data_box,G_FText,Editable,20,1,36,1,0,640);
- Set_DEdit(data_box,efield[24],'____________________________________',
- 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',title_dat[section,number],
- sf,TE_Center);
- for incr:=1 to 7 do
- begin
- efield[incr]:=Add_DItem(data_box,G_FText,Editable,2,incr+1,36,1,0,$1180);
- Set_DEdit(data_box,efield[incr],'____________________________________'
- ,'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',short_field[incr],sf,TE_Left);
- end;
- for incr:=8 to 14 do
- begin
- efield[incr]:=Add_DItem(data_box,G_FText,Editable,40,incr-6,36,1,0,$1180);
- Set_DEdit(data_box,efield[incr],'____________________________________'
- ,'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',short_field[incr],sf,TE_Left);
- end;
- for incr:=15 to 23 do
- begin
- efield[incr]:=Add_DItem(data_box,G_FText,Editable,2,incr-6,74,1,0,$1180);
- Set_DEdit(data_box,efield[incr],
- '__________________________________________________________________________',
- 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
- long_field[incr-14],sf,TE_Left);
- end;
- ex_btn:=Add_DItem(data_box,G_Button,selectable|exit_btn,7,19,6,1,0,$1180);
- Set_DText(data_box,ex_btn,'Exit',smf,TE_Center);
- save_btn:=Add_DItem(data_box,G_Button,selectable|exit_btn,21,19,6,1,0,$1180);
- Set_DText(data_box,save_btn,'Save',smf,TE_Center);
- pnt_btn:=Add_DItem(data_box,G_Button,selectable|exit_btn,35,19,7,1,0,$1180);
- Set_DText(data_box,pnt_btn,'Print',smf,TE_Center);
- next_btn:=Add_DItem(data_box,G_Button,selectable|exit_btn,50,19,6,1,0,$1180);
- Set_DText(data_box,next_btn,'Next',smf,TE_Center);
- last_btn:=Add_DItem(data_box,G_Button,selectable|exit_btn,64,19,6,1,0,$1180);
- Set_DText(data_box,last_btn,'Last',smf,TE_Center);
- Center_Dialog(data_box);
- bttn:=Do_Dialog(data_box,0);
- if bttn=save_btn then
- begin
- for incr:=1 to 14 do
- begin
- Get_DEdit(data_box,efield[incr],teststrg);
- if length(teststrg)=0 then
- teststrg:='';
- if teststrg<>short_field[incr] then
- short_field[incr]:=teststrg;
- end;
- for incr:=15 to 23 do
- begin
- Get_DEdit(data_box,efield[incr],teststrg);
- if length(teststrg)=0 then
- teststrg:='';
- if teststrg<>long_field[incr-14] then
- long_field[incr-14]:=teststrg;
- end;
- Get_DEdit(data_box,efield[24],teststrg);
- if length(teststrg)=0 then
- teststrg:='';
- if teststrg<>title_dat[section,number] then
- begin
- title_dat[section,number]:=teststrg;
- m_title[section,number]:=' ';
- ltd:=length(title_dat[section,number]);
- if ltd>0 then
- begin
- if ltd>20 then ltd:=20;
- for incr:=1 to ltd do
- m_title[section,number,incr]:=title_dat[section,number,incr];
- end;
- erase_menu(a_menu);
- delete_menu(a_menu);
- build_menu;
- end;
- end;
- if (bttn=next_btn) and (number<20) then
- begin
- number:=number+1;
- fname[17]:=numstrg[number+(20*bank),1];
- fname[18]:=numstrg[number+(20*bank),2];
- read_data;
- end;
- if (bttn=last_btn) and (number>1) then
- begin
- number:=number-1;
- fname[17]:=numstrg[number+(20*bank),1];
- fname[18]:=numstrg[number+(20*bank),2];
- read_data;
- end;
- End_Dialog(data_box);
- Delete_Dialog(data_box);
- if bttn=save_btn then save_data;
- if bttn=pnt_btn then print_data;
- end;
-
- Procedure title0_proc;
- begin
- if msg[4]=item13 then
- begin
- Menu_Check(a_menu,item13,true);
- Menu_Check(a_menu,item14,false);
- pnttype:=Pica;
- c1:=pc1;
- c2:=pc2;
- end;
- if msg[4]=item14 then
- begin
- Menu_Check(a_menu,item14,true);
- Menu_Check(a_menu,item13,false);
- pnttype:=Cond;
- c1:=pc3;
- c2:=pc4;
- end;
- if msg[4]=item16 then
- begin
- section:=1;
- print_section;
- end;
- if msg[4]=item17 then
- begin
- section:=2;
- print_section;
- end;
- if msg[4]=item18 then
- begin
- section:=3;
- print_section;
- end;
- if msg[4]=item19 then
- begin
- section:=4;
- print_section;
- end;
- if msg[4]=item20 then
- begin
- section:=5;
- print_section;
- end;
- if msg[4]=item22 then
- begin
- bank:=0;
- read_titles;
- Erase_Menu(a_menu);
- Delete_Menu(a_menu);
- build_menu;
- Menu_Check(a_menu,item22,true);
- Menu_Check(a_menu,item23,false);
- end;
- if msg[4]=item23 then
- begin
- bank:=1;
- read_titles;
- Erase_Menu(a_menu);
- Delete_Menu(a_menu);
- build_menu;
- Menu_Check(a_menu,item23,true);
- Menu_Check(a_menu,item22,false);
- end;
- if msg[4]=item25 then
- begin
- change_drive;
- read_titles;
- Erase_Menu(a_menu);
- Delete_Menu(a_menu);
- build_menu;
- end;
- Menu_Normal(a_menu,title0);
- end;
-
- Procedure title1_proc;
- var incr:integer;
- begin
- for incr:=1 to 20 do
- if msg[4] = title[1,incr] then
- begin
- section:=1;
- number:=incr;
- fname:='\RECIPES1\RECIPE ';
- fname[17]:=numstrg[incr+(20*bank),1];
- fname[18]:=numstrg[incr+(20*bank),2];
- end;
- read_data;
- disp_box;
- while bttn<>ex_btn do disp_box;
- Menu_Normal(a_menu,title1);
- end;
-
- Procedure title2_proc;
- var incr:integer;
- begin
- for incr:=1 to 20 do
- if msg[4] = title[2,incr] then
- begin
- section:=2;
- number:=incr;
- fname:='\RECIPES2\RECIPE ';
- fname[17]:=numstrg[incr+(20*bank),1];
- fname[18]:=numstrg[incr+(20*bank),2];
- end;
- read_data;
- disp_box;
- while bttn<>ex_btn do disp_box;
- Menu_Normal(a_menu,title2);
- end;
-
- Procedure title3_proc;
- var incr:integer;
- begin
- for incr:=1 to 20 do
- if msg[4] = title[3,incr] then
- begin
- section:=3;
- number:=incr;
- fname:='\RECIPES3\RECIPE ';
- fname[17]:=numstrg[incr+(20*bank),1];
- fname[18]:=numstrg[incr+(20*bank),2];
- end;
- read_data;
- disp_box;
- while bttn<>ex_btn do disp_box;
- Menu_Normal(a_menu,title3);
- end;
-
- Procedure title4_proc;
- var incr:integer;
- begin
- for incr:=1 to 20 do
- if msg[4] = title[4,incr] then
- begin
- section:=4;
- number:=incr;
- fname:='\RECIPES4\RECIPE ';
- fname[17]:=numstrg[incr+(20*bank),1];
- fname[18]:=numstrg[incr+(20*bank),2];
- end;
- read_data;
- disp_box;
- while bttn<>ex_btn do disp_box;
- Menu_Normal(a_menu,title4);
- end;
-
- Procedure title5_proc;
- var incr:integer;
- begin
- for incr:=1 to 20 do
- if msg[4] = title[5,incr] then
- begin
- section:=5;
- number:=incr;
- fname:='\RECIPES5\RECIPE ';
- fname[17]:=numstrg[incr+(20*bank),1];
- fname[18]:=numstrg[incr+(20*bank),2];
- end;
- read_data;
- disp_box;
- while bttn<>ex_btn do disp_box;
- Menu_Normal(a_menu,title5);
- end;
-
- Procedure infodial;
- begin
- Info_Box := New_Dialog(21,0,0,40,18);
- box:=Add_DItem(Info_Box,G_Box,None,0,0,40,18,1,4211);
- info_item := Add_DItem(Info_Box,G_Text,None,2,1,36,1,0,0);
- Set_DText(Info_Box,info_item,'Recipe Saver',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,2,36,1,0,0);
- Set_DText(Info_Box,info_item,'Written in Personal Pascal',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,3,36,1,0,0);
- Set_DText(Info_Box,info_item,'by',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,4,36,1,0,0);
- Set_DText(Info_Box,info_item,'Lowell Pemberton',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,5,36,1,0,0);
- Set_DText(Info_Box,info_item,'3602 S. Webster',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,6,36,1,0,0);
- Set_DText(Info_Box,info_item,'Kokomo, IN 46902',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,8,36,1,0,0);
- Set_DText(Info_Box,info_item,'(317)453-7052',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,9,36,1,0,0);
- Set_DText(Info_Box,info_item,'Compuserve 74030,2023',sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,11,36,1,0,0);
- Set_DText(Info_Box,info_item,'Portions of this program',
- sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,12,36,1,0,0);
- Set_DText(Info_Box,info_item,'Copyrighted by OSS & CCD',
- sf,TE_Center);
- info_item := Add_DItem(Info_Box,G_Text,None,2,13,36,1,0,0);
- Set_DText(Info_Box,info_item,'Used by permission of OSS.',
- sf,TE_Center);
- ok_button := Add_DItem(Info_Box,G_Button,Selectable|Exit_Btn|Default,
- 17,15,6,2,2,$1180);
- Set_DText(Info_Box,ok_button,'EXIT',sf,TE_Center);
- Center_Dialog(Info_Box);
- ex_btn := Do_Dialog(Info_Box,0);
- End_Dialog(Info_Box);
- Menu_Normal(a_menu,Desk_Title);
- end;
-
-
- Procedure menu_proc;
- begin
- If msg[3] = title0 then
- title0_proc
- ELSE if msg[3] = title1 then
- title1_proc
- ELSE if msg[3] = title2 then
- title2_proc
- ELSE if msg[3] = title3 then
- title3_proc
- ELSE if msg[3] = title4 then
- title4_proc
- ELSE if msg[3] = title5 then
- title5_proc
- ELSE if msg[3] = Desk_Title then
- infodial;
- end;
-
- Procedure msg_process;
- begin
- Case msg[0] of
- MN_Selected : If Front_Window = big_window then
- menu_proc;
-
- WM_Redraw : If msg[3] = big_window then
- Do_Redraw(msg[3],msg[4],msg[5],msg[6],msg[7]);
-
- end;
-
- end;
-
-
- Procedure event_rtn;
- begin
- event := Get_Event(event_val,
- 0,0,0, { No button goodies }
- 0, { No timer }
- False,0,0,0,0, { No mouse rects }
- False,0,0,0,0,
- msg,
- dummy,
- dummy,dummy, { Not used }
- dummy,dummy,
- dummy
- );
-
- If (event & E_Message) <> 0 then
- msg_process;
-
- end;
-
-
-
-
-
- Procedure init;
- var incr,step:integer;
- begin
- wind_title := 'RECIPES';
- windtype := G_Name;
- event_val := E_Message;
- numstrg[1]:='01';numstrg[2]:='02';numstrg[3]:='03';numstrg[4]:='04';
- numstrg[5]:='05';numstrg[6]:='06';numstrg[7]:='07';numstrg[8]:='08';
- numstrg[9]:='09';numstrg[10]:='10';numstrg[11]:='11';numstrg[12]:='12';
- numstrg[13]:='13';numstrg[14]:='14';numstrg[15]:='15';numstrg[16]:='16';
- numstrg[17]:='17';numstrg[18]:='18';numstrg[19]:='19';numstrg[20]:='20';
- numstrg[21]:='21';numstrg[22]:='22';numstrg[23]:='23';numstrg[24]:='24';
- numstrg[25]:='25';numstrg[26]:='26';numstrg[27]:='27';numstrg[28]:='28';
- numstrg[29]:='29';numstrg[30]:='30';numstrg[31]:='31';numstrg[32]:='32';
- numstrg[33]:='33';numstrg[34]:='34';numstrg[35]:='35';numstrg[36]:='36';
- numstrg[37]:='37';numstrg[38]:='38';numstrg[39]:='39';numstrg[40]:='40';
- IO_Check(false);
- Text_Style(Normal);
- Sys_Font_Size(cw,ch,bw,bh);
- sf:=System_Font;
- smf:=Small_Font;
- Set_Color(3,0,625,625);
- bank:=0;
- end;
-
-
- Procedure open_wind;
- begin
- big_window := New_Window(windtype,wind_title,0,0,0,0);
- Open_Window(big_window,0,0,0,0);
- Work_Rect(0,hx,hy,hw,hh);
- Work_Rect(big_window,xm,ym,wm,hm);
- end;
-
-
- Procedure eop_processing;
- begin
- Close_Window(big_window);
- Delete_Window(big_window);
- Erase_Menu(a_menu);
- Delete_Menu(a_menu);
- Set_Color(3,0,875,0);
- end;
-
-
- BEGIN
- If Init_Gem >= 0 then
- begin
- Init_Mouse;
- Hide_Mouse;
- Clear_Screen;
- init;
- read_pnt_codes;
- read_titles;
- build_menu;
- open_wind;
- Show_Mouse;
- Repeat
- event_rtn
- Until (msg[0] = WM_Closed) or (msg[4]=item11);
- eop_processing;
- end;
-
-
- end.
-